package com.ghca.myinfo3.system.service;

import com.ghca.myinfo3.system.entity.User;

import javax.transaction.Transactional;
import java.util.List;

/**
 * Created by Administrator on 2016/12/18.
 */
public interface IUserService {

    @Transactional
    User login(String username, String password);

    @Transactional
    User addUser(User user);

    List<User> list(User example);
    List<User> list(Long deptId);
}
